package com.atguigu02.iterator.interview;

import java.lang.reflect.Array;
import java.util.*;

public class t {
    public static void main(String[] args) {
        Collection coll=new ArrayList();
        coll.add("123");
        coll.add(456);//自动装箱
        //获取迭代器对象
        Iterator iterator = coll.iterator();
      //  System.out.println(iterator.next());

        while(iterator.hasNext()){
            System.out.println(iterator.next());
        }


    }
}
